#include "junix.h"
using namespace std;

const char* local_char() {
	return "hello,world\n";
}

const char* local_char2() {
	const char *p="UNIX.\n";
	return p;
}

const char* local_char3() {
	const char p[]="UNIX.\n"; // 警告： 返回了局部变量的‘p’的地址
	return p;
}

int main(int argc, char **argv)
{
	const char *p = local_char();
	printf("%s\n",p);

	p = local_char2();
	printf("%s\n",p);


	p = local_char3();
	printf("%s\n",p);
}
